package com.example.xw.common.service.fallback;

import com.example.xw.common.entity.User;
import com.example.xw.common.service.UserService;
import com.example.xw.common.vo.Result;
import org.springframework.stereotype.Service;

@Service
public class FallbackUserServiceImpl implements UserService {
    @Override
    public Result<User> reg(String nickname, String loginname, String loginpwd, String photo) {
        return new Result(6000,null,"服务器暂时不可用，请稍后再试");
    }

    @Override
    public Result<User> login(String loginname, String loginpwd) {
        return new Result(6000,null,"服务器暂时不可用，请稍后再试");
    }

    @Override
    public Result<User> addScore(String loginname, int score) {
        return new Result(6000,null,"服务器暂时不可用，请稍后再试");
    }

    @Override
    public Result<User> updatestate(String loginname, int state) {
        return new Result(6000,null,"服务器暂时不可用，请稍后再试");
    }

    @Override
    public Result<User> getUser(String loginname) {
        return new Result(6000,null,"服务器暂时不可用，请稍后再试");
    }

    @Override
    public Result<User> getUserByLoginname(String loginname) {
        return new Result(6000,null,"服务器暂时不可用，请稍后再试");
    }
}
